﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace yysAuxiliary
{
    /// <summary>
    /// 模拟器
    /// </summary>
    public class Simulator
    {
        /// <summary>
        /// 设置模拟器
        /// </summary>
        /// <param name="type"></param>
        public static void SetSimulator(SimulatorType type)
        {
            ConfigData.Current.Type = type;
            switch (type)
            {
                case SimulatorType.Default:
                    ConfigData.Current.Offsetheight = -31;
                    ConfigData.Current.SimulatorSize = new Size(1152, 679);
                    break;
                case SimulatorType.Mumu:
                    ConfigData.Current.Offsetheight = 0;
                    ConfigData.Current.SimulatorSize = new Size(1136, 731);
                    break;
            }
            ConfigData.Current.WriteJson();
        }

    }

    public enum SimulatorType
    {
        /// <summary>
        /// 桌面版
        /// </summary>
        [Description("桌面版")]
        Default = 0,

        /// <summary>
        /// mumu模拟器
        /// </summary>
        [Description("mumu模拟器")]
        Mumu
    }

}
